package Server;

import java.io.UnsupportedEncodingException;

public class Processor {
	
	public void receiveData(short idCmd, byte[] data) throws UnsupportedEncodingException {		
		System.out.println("receive Cmd ="+idCmd);
		
		//if(idCmd != CMDService.CMD_GET_AVATAR)
		String st = new String(data,"ISO-8859-1");
		
		if(idCmd == CMDService.CMD_LOGIN){
			pro1_Login(st);
		} else if(idCmd == CMDService.CMD_GET_AVATAR){
			pro16_Avatar(data);
		}
	}
	
	public void pro1_Login(String st){
		
	}
	
	public void pro16_Avatar(byte[] data){
		
	}
}
